<table class="table table-responsive" id="qrcodes-table">
    <thead>
        <th>类型</th>
        <th>名称</th>
        <th>地址</th>
        <th>二维码</th>
        <th>扫码次数</th>
        <th colspan="3">操作</th>
    </thead>
    <tbody>
    @foreach($qrcodes as $qrcode)
        <tr>
            <td>{!! $qrcode->type==1?'跳转网址':'跳转公众号' !!}</td>
            <td>{!! $qrcode->title !!}</td>
            <td>{!! $qrcode->url !!}</td>
            <td>
                <img src="{!! $qrcode->pic_url !!}" style="width: 80px" alt="">
{{--                <img src="data:image/png;base64, {!! base64_encode(QrCode::format('png')->size(500)->generate('Make me into an QrCode!')) !!} ">--}}
            </td>
            <td>{!! $qrcode->scan_number !!}</td>
            <td>
                {!! Form::open(['route' => ['qrcodes.destroy', $qrcode->id], 'method' => 'delete']) !!}
                <div class='btn-group'>
                    <a href="{!! route('qrcodes.show', [$qrcode->id]) !!}" class='btn btn-default btn-xs'>查看扫码记录</a>
                    <a href="{!! route('qrcodes.edit', [$qrcode->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
                    {!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
                </div>
                {!! Form::close() !!}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>